﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SyndicateDAO.Classes;
using SyndicateDAO.DatabaseObject;

namespace SyndicateDAO.DAO
{
    public class ResultDAO : DataBaseHelper<result>
    {
        public IQueryable<result> SelectAllByDrawId(int dId)
        {
            return this.SelectAll().Where(c => c.drawId == dId);
        }
        public bool InsertResult(result l)
        {
            return this.Insert(l);
        }
        public bool UpdateResult()
        {
            return this.Update();
        }
        public bool DeleteResult(result l)
        {
            return this.Delete(l);
        }
    }
}
